package cn.com.surker.production.service;

import cn.com.surker.oa.entity.OaProductionContract;
import cn.com.surker.production.entity.PumpConDevice;
import cn.com.surker.production.entity.PumpDevice;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 泵送合同关联设备表 服务类
 * </p>
 *
 * @author admin
 * @since 2024-09-04
 */
public interface PumpConDeviceService extends IService<PumpConDevice> {



	/**
	 * 根据查询是否存在数据
	 *
	 * @param conId
	 * @param devId
	 * @return
	 */
	List<PumpConDevice> queryByConDev(Long conId, Long devId);

	/**
	 * 查询站点下设备的合同
	 *
	 * @param orgId
	 * @param devId
	 * @return
	 */
	List<OaProductionContract> findDevConList(Long orgId, Long devId);

	/**
	 * 根据泵送设备以及泵送时间,查询该泵送期间的合同id
	 *
	 * @param devId
	 * @param pumpTime
	 * @return
	 */
	PumpConDevice findConByDevId(Long orgId, Long devId, String pumpTime);

	/**
	 * 分页查询车辆关联信息
	 * @param searchVal
	 * @param contractId
	 * @param status
	 * @param offset
	 * @param limit
	 * @return
	 */
	IPage findPage(String searchVal, Long contractId, Integer status, Integer offset, Integer limit);


}